package test;

import java.util.Random;

public class Node {
    private int x;
    private int y;

    public Node() {
    }

    public Node(int y, int x) {
        this.y = y;
        this.x = x;
    }

    public  int getX() {return x;}

    public void setX(int x) {
        this.x = x;
    }

    public  int getY() {return y;}

    public void setY(int y) {
        this.y = y;
    }
    public void ramdom(){
        Random r = new Random();
        this.x = r.nextInt(40);
        this.y = r.nextInt(40);
    }
}
